package com.mdd.common.validate.card;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import javax.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 会员卡等级参数
 *
 * @author LikeAdmin
 */
@Data
@ApiModel("会员卡等级更新参数")
public class CardLevelUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    private Integer id;

    @NotNull(message = "等级名称不能为空")
    @ApiModelProperty(value = "等级名称")
    private String levelName;

    @NotNull(message = "升级金额不能为空")
    @ApiModelProperty(value = "升级金额")
    private BigDecimal levelAmount;

    @ApiModelProperty(value = "背景图片")
    private String backUrl;

    @ApiModelProperty(value = "文字颜色")
    private String color;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "状态:1-启用;0-停用;")
    private Integer status;

}
